# -*- coding: utf-8 -*-
# This code written by ChanGOGOGO
"""
PET - 导入随机生成的手机号
"""
import sys
import os

current_script_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_script_dir)
if parent_dir not in sys.path:
    sys.path.append(parent_dir)
from callplus_api import OpenAPI

# 身份信息
open_api = OpenAPI(env="qps1")
task_ids = [114]
phone_num = 20000  # 单个批次手机号数量
total_batch = 10  # 批次数量
customer_info = {"name": "姚先生"}
encryption_type = ""  # 为空-不加密；MD5加密；AES加密
for task_id in task_ids:
    for _ in range(total_batch):
        open_api.import_random_phone(
            inner_task_id=task_id,
            phone_num=phone_num,
            encryption_type=encryption_type,
            # other_customer_info=customer_info,
        )
